package cn.highset.modules.base.service;

import cn.highset.base.HighsetBaseService;
import cn.highset.modules.base.entity.Content;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

/**
 * 富文本内容接口
 *
 * @author Victor
 */
@CacheConfig(cacheNames = "content")
public interface ContentService extends HighsetBaseService<Content, String> {
    /**
     * 通过唯一标识获取
     *
     * @param type
     * @return
     */
    @Cacheable(key = "#type")
    Content findByType(String type);
}
